package com.znsd.exam.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.znsd.entitys.ClassInfo;
import com.znsd.entitys.ExamPlan;

/**
  *
  * <p>Title: ExamChooseInfoMapper</p>
  * <p>Description: </p>
  * @author: taohan
  * @date: 2018-8-25
  * @time: 上午10:33:21
  * @version: 1.0
  */

@Repository
public interface ExamPlanDao {

public List<ExamPlan> getExamPlans(Map<String, Object> map);
	
	public int isAddExamPlan(ExamPlan examPlan);

	public int isUpdateExamPlan(ExamPlan examPlan);
	
	public ExamPlan getExamPlanById(int examPlanId);
	
	public ExamPlan getExamPlanByIdTwo(int examPlanId);
	//查询学生待考信息
	public List<ExamPlan> getStudentWillExam(Map<String, Object> map);
	
	public int isRemoveExamPlan(int examPlanId);
	
	public List<ClassInfo> getClasses(ClassInfo clazz);
	
	public List<ExamPlan> getExamPlansTwo();
	
	public int getExamCount(Map<String,Object> map);
	
	public List<ExamPlan> getOne(Integer examPaperId);
	
	public List<ExamPlan> getOneClass(@Param("examPaperId")Integer examPaperId);
	
}
